package rjgc.mall.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import rjgc.mall.entity.User;
import rjgc.mall.entity.vo.UserRegisterParam;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int insertUser(User user);

    int UserRegistered(UserRegisterParam userRegisterParam);
    Integer repeatAccount(String account);
    User login(@Param("account")String account, @Param("password")String password);
    List<User> checkUser();
    int updateInfo(User user);
    User checkUserbyid(Integer id);
}
